package com.zhengxin.one.entity.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.zhengxin.one.entity.entityClass.CBAccumulation;
import com.zhengxin.one.entity.entityClass.CBCommercial;
import com.zhengxin.one.entity.entityClass.CBSociety;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("personExportExcel")
public class PersonExportExcel {
    //导出参保人
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "身份证")
    private String id_card;
    @Excel(name = "国籍")
    private String nationality;
    @Excel(name = "手机")
    private String phone;
    @Excel(name = "户籍所在地")
    private String region;
    @Excel(name = "户口性质")
    private String residence_type;
    @Excel(name = "性别",replace = { "男_1", "女_2" })
    private int sex;
    @ExcelCollection(name = "社保信息")
    private List<SocietyExportExcel> solist;
    @ExcelCollection(name = "公积金信息")
    private List<AccumulationExportExcel> aclist;
    @ExcelCollection(name = "商保信息")
    private List<CommercialExportExcel> colist;
}
